﻿using System.ComponentModel;
using RaytracerLib.RenderableObjects;
using RaytracerLib.UVMappers;

namespace Raytracer.PropertyGridDecorators
{
    public class SphereObjectProperties : RenderableObjectProperties
    {
        private SphereObject m_sphere;

        public SphereObjectProperties(SphereObject a_sphere) :
            base(a_sphere)
        {
            m_sphere = a_sphere;
        }

        [Category(Categories.PROPERTIES)]
        [TypeConverter(typeof(DoubleConverter))]
        public double Radius
        {
            get
            {
                return m_sphere.Radius;
            }
            set
            {
                m_sphere.Radius = value;
            }
        }
    }
}